package com.jiangyifen.robot.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.jiangyifen.framework.db.core.BaseEntity;

@Entity
@Table(name = "robot_chat_node")
public class ChatNodeEntity extends BaseEntity{
	
	private Long scenarioId;//场景id
	
	private String nodeName;
	
	private String nodeCode;//节点编号

	private Boolean isMainNode;// 主流程节点 MAIN,  问题节点 QUESTION
	
	private Boolean isFirstNode;
	
	private Boolean canBeInterrupt = true; //默认可以被打断。重要节点，人工配置成不可打断
	
	private String contentType;// text, file, url
	private String contentText = "尚未录入内容";// 具体的内容文本，或录音文件路径，或录音文件url
	private String contentFilePath = "您尚未配置录音文件的提示音.wav";// 具体的内容文本，或录音文件路径，或录音文件url
	private String contentUrl = "您尚未配置录音文件的提示音.wav 的本地url";// 具体的内容文本，或录音文件路径，或录音文件url
	
	private String actionType;
	private String actionValue;
	
	private String nextMainNodeCode; // 当一个节点说完后
	
	private String keywordList1;
	
	private String nextNodeCodeForKeyword1;
	
	private String keywordList2;
	
	private String nextNodeCodeForKeyword2;
	
	private String keywordList3;
	
	private String nextNodeCodeForKeyword3;
	
	private String nextNodeCodeForGoodAnswer;

	private String nextNodeCodeForNormalAnswer;
	
	private String nextNodeCodeForBadAnswer;
	
	public Long getScenarioId() {
		return scenarioId;
	}

	public void setScenarioId(Long scenarioId) {
		this.scenarioId = scenarioId;
	}

	public String getNodeCode() {
		return nodeCode;
	}

	public void setNodeCode(String nodeCode) {
		this.nodeCode = nodeCode;
	}

	public Boolean getIsMainNode() {
		return isMainNode;
	}

	public void setIsMainNode(Boolean isMainNode) {
		this.isMainNode = isMainNode;
	}

	public Boolean getIsFirstNode() {
		return isFirstNode;
	}

	public void setIsFirstNode(Boolean isFirstNode) {
		this.isFirstNode = isFirstNode;
	}

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public String getContentText() {
		return contentText;
	}

	public void setContentText(String contentText) {
		this.contentText = contentText;
	}

	public String getContentFilePath() {
		return contentFilePath;
	}

	public void setContentFilePath(String contentFilePath) {
		this.contentFilePath = contentFilePath;
	}

	public String getContentUrl() {
		return contentUrl;
	}

	public void setContentUrl(String contentUrl) {
		this.contentUrl = contentUrl;
	}

	public String getActionType() {
		return actionType;
	}

	public void setActionType(String actionType) {
		this.actionType = actionType;
	}

	public String getActionValue() {
		return actionValue;
	}

	public void setActionValue(String actionValue) {
		this.actionValue = actionValue;
	}

	public String getNextMainNodeCode() {
		return nextMainNodeCode;
	}

	public void setNextMainNodeCode(String nextMainNodeCode) {
		this.nextMainNodeCode = nextMainNodeCode;
	}

	public String getKeywordList1() {
		return keywordList1;
	}

	public void setKeywordList1(String keywordList1) {
		this.keywordList1 = keywordList1;
	}

	public String getNextNodeCodeForKeyword1() {
		return nextNodeCodeForKeyword1;
	}

	public void setNextNodeCodeForKeyword1(String nextNodeCodeForKeyword1) {
		this.nextNodeCodeForKeyword1 = nextNodeCodeForKeyword1;
	}

	public String getKeywordList2() {
		return keywordList2;
	}

	public void setKeywordList2(String keywordList2) {
		this.keywordList2 = keywordList2;
	}

	public String getNextNodeCodeForKeyword2() {
		return nextNodeCodeForKeyword2;
	}

	public void setNextNodeCodeForKeyword2(String nextNodeCodeForKeyword2) {
		this.nextNodeCodeForKeyword2 = nextNodeCodeForKeyword2;
	}

	public String getKeywordList3() {
		return keywordList3;
	}

	public void setKeywordList3(String keywordList3) {
		this.keywordList3 = keywordList3;
	}

	public String getNextNodeCodeForKeyword3() {
		return nextNodeCodeForKeyword3;
	}

	public void setNextNodeCodeForKeyword3(String nextNodeCodeForKeyword3) {
		this.nextNodeCodeForKeyword3 = nextNodeCodeForKeyword3;
	}

	public String getNextNodeCodeForGoodAnswer() {
		return nextNodeCodeForGoodAnswer;
	}

	public void setNextNodeCodeForGoodAnswer(String nextNodeCodeForGoodAnswer) {
		this.nextNodeCodeForGoodAnswer = nextNodeCodeForGoodAnswer;
	}

	public String getNextNodeCodeForNormalAnswer() {
		return nextNodeCodeForNormalAnswer;
	}

	public void setNextNodeCodeForNormalAnswer(String nextNodeCodeForNormalAnswer) {
		this.nextNodeCodeForNormalAnswer = nextNodeCodeForNormalAnswer;
	}

	public String getNextNodeCodeForBadAnswer() {
		return nextNodeCodeForBadAnswer;
	}

	public void setNextNodeCodeForBadAnswer(String nextNodeCodeForBadAnswer) {
		this.nextNodeCodeForBadAnswer = nextNodeCodeForBadAnswer;
	}

	public Boolean getCanBeInterrupt() {
		return canBeInterrupt;
	}

	public void setCanBeInterrupt(Boolean canBeInterrupt) {
		this.canBeInterrupt = canBeInterrupt;
	}

	public String getNodeName() {
		return nodeName;
	}

	public void setNodeName(String nodeName) {
		this.nodeName = nodeName;
	}

}
